﻿using System.Text;

namespace Zinnia.Common.Core
{
    /// <summary>
    /// 文件服务接口
    /// </summary>
    internal interface IFileService
    {
        /// <summary>
        /// 写入文本
        /// </summary>
        /// <param name="content">写入内容</param>
        /// <param name="relativePath">相对路径</param>
        /// <param name="encode">编码方式</param>
        void Write(string content, string relativePath, Encoding encode);
        /// <summary>
        /// 读取文本信息
        /// </summary>
        /// <returns></returns>
        string ReadFileText(string relativePath, Encoding encode);
    }
}
